package u.can.i.up;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

import u.can.i.up.interfaces.IStudent;

public class Main {

	@SuppressWarnings("resource")
	public static void main(String[] args) {
		ApplicationContext ctx = 
				new FileSystemXmlApplicationContext("src/main/resources/applicationContext.xml");

		IStudent person = (IStudent)ctx.getBean("student");
		person.addStudent("dragon");
		person.addStudent("javadragon");
	}

}
